/* 产品页面样式 */

body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color:#333;
    color: #333;
}
.products {
	margin: 40px 0;
    padding: 20px 0;
    background-color: rgb(159, 219, 223);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.products h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
}

.product-model-sec {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.product-grid {
	background-color: rgb(163, 220, 170);
    width: 240px;
    border: 1px solid rgb(128, 255, 255);
    border-radius: 5px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 6px rgb(64, 128, 128);
    transition: box-shadow 0.3s;
}

.product-grid:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.product-img {
    position: relative;
    overflow: hidden;
    height: 240px;
    
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img .b-wrapper {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.product-grid:hover .b-wrapper {
    display: flex;
}

.product-info {
    padding: 15px;
}

.product-info h4 {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.product-info .item_price {
    color: #e74c3c;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.product-info .item_add {
    background-color: rgb(61, 174, 194);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-info .item_add:hover {
    background-color: rgb(128, 255, 255);
}

/* 分页样式 */
div[style='text-align:center;'] {
    margin-top: 20px;
}

div[style='text-align:center;'] .btn {
    margin: 0 5px;
    padding: 8px 12px;
}

div[style='text-align:center;'] h2 {
    display: inline;
    margin: 0 10px;
    font-size: 16px;
    color: #555;
}

.products .container div:last-child {
    text-align: center;
    margin-top: 20px;
}

.products .container div:last-child a {
    padding: 0.5px 1px;
    background-color: rgb(22, 80, 58);
    color: #fff;
    border-radius: 1px;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.products .container div:last-child a:hover {
    background-color: rgb(0, 128, 64);
}
